home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
rfileu10.zip
/
STRINGS.DOC
< prev
next >
Wrap
Text File
|
1993-05-06
|
6KB
|
151 lines
#####
# # ##### ##### # # # #### ####
# # # # # ## # # # #
##### # # # # # # # # ####
# # ##### # # # # # ### #
# # # # # # # ## # # # #
##### # # # # # # #### ####
You can get part of the following documentation by invoking the program with
the switches -v, -h, or -H . See README.TXT for more information.
----------------------------------- -v ------------------------------------
STRINGS2 v1.0 -- Find printable strings in binary files
Copr (c) 1992,1993 Richard Breuer. STRINGS2 is freeware. No warranties.
This is STRINGS/2 v1.0 - renamed to STRINGS2 (from RUTILS 4).
Author: Richard Breuer
Brunssumstrasse 6
5100 Aachen
(after Jul 1, 1993: 52074 Aachen)
Germany
Europe
Phone: +49/241/85605
Fax: +49/241/8021329
Email: ricki@pool.informatik.rwth-aachen.de (Preferred!)
----------------------------------- -h ------------------------------------
STRINGS2 v1.0 -- Find printable strings in binary files
Copr (c) 1992,1993 Richard Breuer. STRINGS2 is freeware. No warranties.
Usage:
STRINGS2 [-ahHo:txv*] [-<n>] infile.. [{>|>>} outfile]
Options (+ are default):
-<n> Use n as the minimum string length rather than 4
-a Append the code of the first non-printable character to each line
-h Display this help screen
-H Display another help screen with notes and examples
+ -n Use default charset: ( #9 #32..#126 #128..#168 )
-o[d] Precede each string by its offset in the file. Use -o/-od/-oD/-o10
for decimal (6 digits), -ox/-oX/-o$/-o16 for hecadecimal (4 digits),
-oo/-oO/-o8 for octal (8 digits), or -ob/-oB/-o2 for binary offset
(16 digits)
-t Use tiny charset: ( #9 #32 0..9 A..Z a..z #128..#168 )
-v Display version info and information about the author
-x Use extended charset: ( #9 #32..#254 ) (IBM-printable)
-* Display internal information (for debugging purposes)
----------------------------------- -H ------------------------------------
STRINGS2 v1.0 -- Find printable strings in binary files
Copr (c) 1992,1993 Richard Breuer. STRINGS2 is freeware. No warranties.
Notes:
STRINGS2 reads from stdin if a filename is -. The output is always directed
to stdout. The errorlevel is set to 1 if help has been displayed. It is
set to 255 in case of an error and 0 on normal completion. Output resulting
from multiple input files is appended to stdout. The processing order for
wildcards depends on the order of the directory entries. Console input or
piping is not allowed.
Example:
STRINGS2 *.COM -o16
Process all *.COM files in the current dir and append the string lists to
stdout, prepending each line with a hexadecimal offset in the file. The
order is the one DOS's DIR tells you.
-------------------------------------------------------------------------------
Additional information:
STRINGS is similar to the Unix command with the same name. The main
difference is that RUTILS' STRING behaves like Unix STRING with the -a
option, ie. it looks for printable strings everywhere in the file.
Besides, it offers several useful options more than the Unix version.
Examples:
Let's consider an example. I have a little utility called KEYFAKE by
Charles Petzold, which I use sometimes. Below you find several examples
of the behaviour of STRINGS when invoked with different switches. We use
the switch -5 in all examples to reduce the number of matches (-5 means
that only readable strings with a length greater than 4 will match, no
shorter ones).
STRINGS -5 KEYFAKE.COM
KEY-FAKE (C) Copyright Charles Petzold, 1985
ªt,@Ä
cÉ<@u
-É<"t
+ÉÇ>ç
STRINGS -x5 KEYFAKE.COM { extended charset }
KEY-FAKE (C) Copyright Charles Petzold, 1985
√.Ç>5
└t╧╧S.ï
ⁿî╩+└Ä└╛
≤ªt,@Ä└;┬uφ╞
'+└Ä╪íX
¼ÿï╚A
*Σ½&■
δcÉ<@u
δ-É<"t
δ+ÉÇ>ç
*ΣÇ>ê
å─½&■
STRINGS -t5 KEYFAKE.COM { tiny charset }
FAKE
Copyright Charles Petzold
1985
STRINGS -a5 KEYFAKE.COM { append first non-printable code }
KEY-FAKE (C) Copyright Charles Petzold, 1985 #0
ªt,@Ä #192
cÉ<@u #8
-É<"t #4
+ÉÇ>ç #2
STRINGS -5 -od KEYFAKE.COM { decimal offsets }
000003 KEY-FAKE (C) Copyright Charles Petzold, 1985
000161 ªt,@Ä
000426 cÉ<@u
000438 -É<"t
000482 +ÉÇ>ç
STRINGS -5 .o$ KEYFAKE.COM { hex offsets }
00000003 KEY-FAKE (C) Copyright Charles Petzold, 1985
000000A1 ªt,@Ä
000001AA cÉ<@u
000001B6 -É<"t
000001E2 +ÉÇ>ç
STRINGS -5 -o8 KEYFAKE.COM { octal offsets }
00000000003 KEY-FAKE (C) Copyright Charles Petzold, 1985
00000000241 ªt,@Ä
00000000652 cÉ<@u
00000000666 -É<"t
00000000742 +ÉÇ>ç
STRINGS -5 KEYFAKE.COM { binary offsets }
00000000000000000000000000000011 KEY-FAKE (C) Copyright Charles Petzold, 1985
00000000000000000000000010100001 ªt,@Ä
00000000000000000000000110101010 cÉ<@u
00000000000000000000000110110110 -É<"t
00000000000000000000000111100010 +ÉÇ>ç